package com.wq.wrongquestion.mapper.pol;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.wq.wrongquestion.entity.pol.PoliticsEntity;

/**
 * 政治
 */

@Mapper
public interface PoliticsMapper {
     
    @Select("select zjnm from m_politicszj where zjid=#{zjID}")
    public String getPoliticsZjnm(String zjID);
    

    @Select("select zjID from m_politicszj")
    public List<String>  getPoliticsZjID();
    /**
     * 获取所有章节
     * @return
     */

    public List<String>  getPoliticsZj();

    public List<PoliticsEntity> getPolitics(PoliticsEntity politicsEntity);


    public List<PoliticsEntity> getPoliticsByID(Integer id);
    /**
     * 插入错题 
     */

    public void insPolitics(PoliticsEntity politicsEntity);
    /**
     * 更新错题
     * @param politicsEntity
     */
    public Integer updPolitics(PoliticsEntity politicsEntity);
    /**
     * 删除错题
     * 
     */
    public Integer delPolitics(Integer id); 
}
